package IO流;

/**
 * @author:谢君臣
 * @Date:2021/5/18-14:06
 * @version:1.0
 * @function:
 */
public class 两数之和 {
    public static void main(String[] args) {
        int a = 452,b=456;
        int i = Solution(a, b);
        System.out.println(a+"+"+b+"="+i+",实际结果为"+(a+b)+".");
    }
   static int Solution(int a,int b){
        if (b==0)return a;
        else {
           return Solution(a^b,(a&b)<<1);
        }
    }

}
